<!-- import { wrap } from 'module'; -->
<template>
  <div class="cls">
    <group-table
      :formList="formList"
      :columns="columns"
      :tableData="tableData"
      :getDataWay="getDataWay"
      index="index"
      selection="selection"
      @getTableListData="getTableListData"
    >
      <template #operation="scope">
        <!-- {{ scope.column }}111 -->
        <el-button
          link
          type="primary"
          size="small"
          @click="handleClick(scope.row)"
          >查看</el-button
        >
        <el-button link type="primary" size="small">撤销申请</el-button>
      </template>
    </group-table>
  </div>
</template>

<script setup lang="ts">
import groupTable from "@/components/groupTable/index.vue";
import { settleApplyManagementQuery } from "@/api/applicaiton.ts";
import { useRouter } from "vue-router";
import { formList, columns } from "./data";
const router = useRouter();
const getDataWay = {
  dataType: "url",
  data: settleApplyManagementQuery,
  param: {
    pageNum: 1, //当前页码
    pageSize: 10, // 每页展示数量
  },
  tableRequest: false,
};
const tableData = ref([]);
const handleClick = (row: any) => {
  router.push({
    path: "/channelMerchantManagement/admissionApplicaitonManagement/detail",
    query: { applno: row.applno },
  });
  console.log(row);
};
const getTableListData = (data: any) => {
  tableData.value = data;
};
</script>

<style scoped lang="scss"></style>
